# include <stdio.h>

int main(int argc, const char *argv[]) {
    int i,j, tmp, max, index;
    int a[6] = {10,30,11,69,23,5};
    for(i = 0; i < 5; i++) {
        max = a[i];
        index = i;
        for(j=i+1; j < 5; j++) {
            if(max < a[j]) {
                index = j;
                max = a[j];
            }
        }
        tmp = a[index];
        a[index] = a[i];
        a[i] = tmp;
    }
    for(i = 0; i < 6; i++ ) {
        printf("%d\n", a[i]);
    }
    return 0;
}

